import axios from '../axios'
// 分页查询
export const findPage = (data) => {
    return axios({
        url: '/cloud/hospitalservicetype/list',
        method: 'post',
        data
    })
}

// 详情查询
export const findbyid = (data) => {
    return axios({
        url: '/cloud/hospitalservicetype/info/'+data.id,
        method: 'get',
        data
    })
}

// 添加
export const save = (data) => {
    return axios({
        url: '/cloud/hospitalservicetype/save',
        method: 'post',
        data
    })
}

// 修改
export const update = (data) => {
    return axios({
        url: '/cloud/hospitalservicetype/update',
        method: 'post',
        data
    })
}

// 修改状态
export const updateStatus = (data) => {
    return axios({
        url: '/cloud/hospitalservicetype/updateServiceStatus',
        method: 'post',
        data
    })
}